#include<iostream>
#include<vector>
#include<string>
using namespace std;


string solve(string s, string t) {
    int i = s.length() - 1;
    int j = t.length() - 1;
    string result = "";
    int carry = 0;
    while (i >= 0 || j >= 0 || carry > 0) {
        int digit1 = (i >= 0) ? s[i] - '0' : 0;
        int digit2 = (j >= 0) ? t[j] - '0' : 0;
        int sum = carry + digit1 + digit2;

        carry = sum / 10;
        int currentDigit = sum % 10;

        result.push_back(currentDigit + '0');
        i--;
        j--;
    }
    reverse(result.begin(), result.end());
    return result;

}

int main()
{
    string s = "1";
    string x = "99";
    solve(s, x);
    return 0;
}